const TOKEN_KEY = '记账小能手'
// 获取token
export const getToken = () => localStorage.getItem(TOKEN_KEY)
// 存储token
export const setToken = (token) => localStorage.setItem(TOKEN_KEY, token)
// 删除token
export const delToken = () => localStorage.setItem(TOKEN_KEY)
// 判断是否登录
export const isAuth = () => !!getToken()
